<body>
	<div id="wrapper">
		<?php echo $heading; ?>
		<div id="formleft">
			<p class="rightalign">Username:</p>
			<p class="rightalign">Password:</p>
			<p class="rightalign">Repeat Password:</p>
			<p class="rightalign">Email:</p>
			<p class="rightalign">Registration Code:</p>
			
		</div>
		<div id="formfields">
		<?php echo form_open('register/index'); ?>
		
		<input type="text" name="username" class="margin" value="<?php echo set_value('username'); ?>" /><br />
		<input type="password" name="password" class="margin" value="<?php echo set_value('password'); ?>" /><br />
		<input type="password" name="password2" class="margin" value="<?php echo set_value('password2'); ?>" /><br />
		<input type="text" name="email" class="margin" value="<?php echo set_value('email'); ?>" /><br />
		<input type="text" name="regcode" class="margin" value="<?php echo set_value('regcode'); ?>" /><br /><br />
		<input type="submit" value="Register" style="margin-left:50px" />
		</form>
		</div>
		<div id="formerrors" >
		<p><?php echo form_error('username'); ?> </p>
		<p><?php echo form_error('password'); ?> </p>
		<p><?php echo form_error('password2'); ?> </p>
		<p><?php echo form_error('email'); ?> </p>
		<p><?php echo form_error('regcode'); ?> </p>
		</div>
	</div>
</body>
</html>